@{
    var hostUrl = Request.Url.GetComponents(UriComponents.SchemeAndServer, UriFormat.Unescaped);
    var callbackUrl = hostUrl + VirtualPathUtility.GetDirectory(Request.FilePath) + "GetAccessToken";
}
<h3>Authentication Flow</h3>

<h4>Step 1: Call the Twitter.LoginButton() Method</h4>
<p>Use the following code to display the Twitter's login button:</p>

<pre class="codePre">
@@Twitter.LoginButton(callbackUrl: "@callbackUrl")
</pre>

<p>Click the Sign In button and authenticate with Twitter using your account:</p>

@Twitter.LoginButton(callbackUrl: SampleHelpers.RetrieveCallbackUrl("GetAccessToken"))


